package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年9月9日 下午3:50:45 
 * 类说明 
 */
public class PsCEpAppItemPrimary implements Serializable {

	private static final long serialVersionUID = -2039544184040089027L;
	
	private String cEpAppraisalId;
	private String cEpCatItemId;
	private String cEpCatType;
	private BigDecimal cEpSectionId;
	private String cEpTemplate;
	private BigDecimal version;
	public String getcEpAppraisalId() {
		return cEpAppraisalId;
	}
	public void setcEpAppraisalId(String cEpAppraisalId) {
		this.cEpAppraisalId = cEpAppraisalId;
	}
	public String getcEpCatItemId() {
		return cEpCatItemId;
	}
	public void setcEpCatItemId(String cEpCatItemId) {
		this.cEpCatItemId = cEpCatItemId;
	}
	public String getcEpCatType() {
		return cEpCatType;
	}
	public void setcEpCatType(String cEpCatType) {
		this.cEpCatType = cEpCatType;
	}
	public BigDecimal getcEpSectionId() {
		return cEpSectionId;
	}
	public void setcEpSectionId(BigDecimal cEpSectionId) {
		this.cEpSectionId = cEpSectionId;
	}
	public String getcEpTemplate() {
		return cEpTemplate;
	}
	public void setcEpTemplate(String cEpTemplate) {
		this.cEpTemplate = cEpTemplate;
	}
	public BigDecimal getVersion() {
		return version;
	}
	public void setVersion(BigDecimal version) {
		this.version = version;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cEpAppraisalId == null) ? 0 : cEpAppraisalId.hashCode());
		result = prime * result
				+ ((cEpCatItemId == null) ? 0 : cEpCatItemId.hashCode());
		result = prime * result
				+ ((cEpCatType == null) ? 0 : cEpCatType.hashCode());
		result = prime * result
				+ ((cEpSectionId == null) ? 0 : cEpSectionId.hashCode());
		result = prime * result
				+ ((cEpTemplate == null) ? 0 : cEpTemplate.hashCode());
		result = prime * result + ((version == null) ? 0 : version.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCEpAppItemPrimary other = (PsCEpAppItemPrimary) obj;
		if (cEpAppraisalId == null) {
			if (other.cEpAppraisalId != null)
				return false;
		} else if (!cEpAppraisalId.equals(other.cEpAppraisalId))
			return false;
		if (cEpCatItemId == null) {
			if (other.cEpCatItemId != null)
				return false;
		} else if (!cEpCatItemId.equals(other.cEpCatItemId))
			return false;
		if (cEpCatType == null) {
			if (other.cEpCatType != null)
				return false;
		} else if (!cEpCatType.equals(other.cEpCatType))
			return false;
		if (cEpSectionId == null) {
			if (other.cEpSectionId != null)
				return false;
		} else if (!cEpSectionId.equals(other.cEpSectionId))
			return false;
		if (cEpTemplate == null) {
			if (other.cEpTemplate != null)
				return false;
		} else if (!cEpTemplate.equals(other.cEpTemplate))
			return false;
		if (version == null) {
			if (other.version != null)
				return false;
		} else if (!version.equals(other.version))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
 